package com.gitee.cirnochat.chatai.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gitee.cirnochat.chatai.model.vo.req.aisession.AISessionUpdateDTO;
import com.gitee.cirnochat.chatai.model.entity.AiChatSession;
import com.gitee.cirnochat.chatai.model.vo.resp.AIChatSessionVo;
import com.gitee.cirnochat.common.model.vo.resp.PageVo;

/**
* @author FlanChan
* @description 针对表【ai_chat_session】的数据库操作Service
* @createDate 2025-05-14 20:09:13
*/
public interface AiChatSessionService extends IService<AiChatSession> {

    PageVo<AIChatSessionVo> pageSessionList(String searchName, int page, int size, Long userId);

    Boolean removeSessionById(Long id, Long userId);

    AiChatSession updateSessionById(AISessionUpdateDTO sessionUpdateDTO, Long userId);

    void updateSessionInfoByIdAsync(AiChatSession aiChatSession);
}
